package com.gnerv.teamcityboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@CrossOrigin
public class TeamCityBootApplication {

    public static void main(String[] args) {
        SpringApplication.run(TeamCityBootApplication.class, args);
    }


    @RequestMapping(value = "/get/{name}")
    public String get(@PathVariable(value = "name") String name){
        return name;
    }

}
